<template>
	<view class="page" :style="themeColor">
		<view class="flex benben-position-layout flex flex-wrap align-center setMobileAndName_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between flex-sub setMobileAndName_fd0_0'>
				<view class='flex flex-wrap align-center justify-center setMobileAndName_fd0_0_c0'
					@tap.stop="handleJumpDiy" data-type="back" data-url="1">
					<text class='fu-iconfont2  setMobileAndName_fd0_0_c0_c0'>&#xE794;</text>
				</view>
				<view class='flex flex-wrap align-stretch justify-center'>
					<text class='setMobileAndName_fd0_0_c1_c0' v-if="type=='1'">修改手机号</text><text
						class='setMobileAndName_fd0_0_c1_c0' v-if="type=='2'">修改姓名</text>
				</view>
				<view class='flex flex-wrap align-center setMobileAndName_fd0_0_c0'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		<!---flex布局flex布局开始-->
		<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout setMobileAndName_flex_1">
			<view class='flex flex-wrap align-center setMobileAndName_fd1_0'>
				<input class='flex-sub' type="text" placeholder="请输入手机号码" confirm-type="done" :maxlength="11"
					placeholder-style="color:#999;font-size:28rpx" v-model="info.mobile" v-if="type=='1'" />
				<input
					class='flex-sub' type="text" :placeholder="'请输入姓名'" confirm-type="done" :maxlength="10"
					placeholder-style="color:#999;font-size:28rpx" v-model="info.name" v-if="type=='2'" />
				<text class='fu-iconfont2  setMobileAndName_fd1_0_c1' @tap.stop="info.name = ''">&#xe8e7;</text>
			</view>
		</view>

		<!---flex布局flex布局结束-->
		<view class="flex flex-direction flex-wrap align-center benben-position-layout flex setMobileAndName_flex_2">
			<button class='setMobileAndName_fd2_0' @tap.stop="exportFunc">确定</button>

		</view>
		<view :style="{height: '88rpx'}"></view>


	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"info": {
					"mobile": "",
					"name": ""
				},
				"type": ""
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			let {
				type,
				name
			} = options
			if (type !== undefined) this.type = type
			if (name !== undefined) this.info.name = name
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//抛出
			exportFunc() {
				if (!this.info.name) {
					this.$message.info('请输入姓名');
				}
				uni.$emit('telAndName', this.info.name);
				this.$urouter.navigateBack(1);
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: var(--benbenbgColor1);
		background-size: 100% auto !important;
	}

	.setMobileAndName_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.setMobileAndName_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 88rpx;
	}

	.setMobileAndName_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.setMobileAndName_fd0_0_c0 {
		width: 50rpx;
		height: 50rpx;
	}

	.setMobileAndName_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.setMobileAndName_flex_1 {
		padding: 32rpx 32rpx 0rpx 32rpx;
	}

	.setMobileAndName_fd1_0_c1 {
		margin: 0rpx 0rpx 0rpx 0rpx;
	}

	.setMobileAndName_fd1_0 {
		background: rgba(246, 247, 249, 1);
		border-radius: 8rpx 8rpx 8rpx 8rpx;
		padding: 020rpx 24rpx 20rpx 24rpx;
	}

	.setMobileAndName_flex_2 {
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		bottom: calc(48rpx + var(--window-bottom));
	}

	.setMobileAndName_fd2_0 {
		background: rgba(205, 150, 45, 1);
		border-radius: 64rpx 64rpx 64rpx 64rpx;
		font-size: 32rpx;
		color: #fff;
		width: 686rpx;
		height: 88rpx;
		line-height: 88rpx;
	}
</style>